package org.ccay.log;

import java.io.Serializable;
import java.util.Date;

/**
 * collection of find records
 * 
 * @author chaowangbang
 * @date   2013-12-09
 * 
 */

public class LogSearchVO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5936257698743984983L;
	
	/**
	 * 服务器名
	 */
	private String serverName;
	/**
	 * log4J的appender类型
	 */
	private String appender;
	/**
	 * 用户帐号
	 */
	private String userAccount;
	/**
	 * 发生时间
	 */
	private Date date;
	/**
	 * 异常类型
	 */
	private String type;
	/**
	 * 异常编码
	 */
	private String code;
	/**
	 * 异常类
	 */
	private String classCode;
	/**
	 * 关键字
	 */
	private String keyWord;
	/**
	 * 异常信息
	 */
	private String info;
	/**
	 * 开始时间
	 */
    private String timeRange;
    /**
     * 总记录数
     */
    private int totalRows;
	/**
	 * 查找开始位置
	 */
    private long beginPointer;
    /**
     * 查找结束位置
     */
    private long endPointer;
    
    private String searchFileName;
	
	public String getServerName() {
		return serverName;
	}
	public void setServerName(String serverName) {
		this.serverName = serverName;
	}
	public String getAppender() {
		return appender;
	}
	public void setAppender(String appender) {
		this.appender = appender;
	}
	public String getUserAccount() {
		if(userAccount==null){
			return "";
		}else{
			return userAccount;
		}
	}
	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getCode() {
		if (code == null) {
			return "";
		} else {
			return code;
		}
	}
	public void setCode(String code) {
        this.code = code;
	}
	public String getClassCode() {
		return classCode;
	}
	public void setClassCode(String classCode) {
		this.classCode = classCode;
	}
	public String getKeyWord() {
		if(keyWord==null){
			return "";
		}else{
		    return keyWord;
		}
	}
	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}
	public String getInfo() {
		if(info==null){
			return "";
		}else{
			return info;
		}
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getTimeRange() {
		return timeRange;
	}
	public void setTimeRange(String timeRange) {
		this.timeRange = timeRange;
	}
	public int getTotalRows() {
		return totalRows;
	}
	public void setTotalRows(int totalRows) {
		this.totalRows = totalRows;
	}
	public long getBeginPointer() {
		return beginPointer;
	}
	public void setBeginPointer(long beginPointer) {
		this.beginPointer = beginPointer;
	}
	public long getEndPointer() {
		return endPointer;
	}
	public void setEndPointer(long endPointer) {
		this.endPointer = endPointer;
	}
	public String getSearchFileName() {
		return searchFileName;
	}
	public void setSearchFileName(String searchFileName) {
		this.searchFileName = searchFileName;
	}
}
